import type { PageParams } from '@/types/global'
import type { HotResult } from '@/types/hot'
import { http } from '@/utils/http'

// 参数类型  分页参数 + subType
type HotParams = PageParams & { subType?: string }

export function getHotGoods(url: string, data?: HotParams) {
  return http<HotResult>({
    method: 'GET',
    url,
    data,
  })
}
